home *** CD-ROM | disk | FTP | other *** search
- #ifndef __Shell_Array_h
- #define __Shell_Array_h
-
- #ifndef __Shell_h
- #include "Shell.Shell.h"
- #endif
-
-
-
- #define Shell_WIDTH (8 * Shell_TEXTXSIZE)
- /* Default column width used in array plotting. */
-
-
- typedef struct {
- void *data;
- char format[8];
- int width; /* column width */
- int forecol, backcol;
- wimp_point size;
- }
- Shell_GeneralArrayInfo;
-
-
- typedef char * (*Shell_GeneralArrayFn) ( int x, int y, Shell_GeneralArrayInfo *arrayinfo);
-
-
- Shell_rectblock *Shell_AddGeneralArray(
- Shell_windblock *wind,
- int x,
- int y,
- int xsize,
- int ysize,
- int width,
- const char *format,
- Shell_GeneralArrayFn fn,
- const void *reference,
- int forecol,
- int backcol
- );
-
- /* Makes a rectangle in a window, which is a matrix. */
- /* You supply a function which should return a string for the */
- /* contents of any x,y location in the matrix. */
-
-
- Shell_rectblock *Shell_Add2DDoubleArray(
- Shell_windblock *wind,
- int x,
- int y,
- int xsize,
- int ysize,
- int forecol,
- int backcol,
- double **data
- );
- /* displays the contents of double array 'data' as a table in */
- /* the window. The top-left value will be data[0][0] */
-
- #endif
-